package com.linkhub.oms.dao.mpservice.impl;

import com.linkhub.oms.dao.mapper.ProcessOrderRecordEntityMapper;
import com.linkhub.oms.dao.mpservice.IProcessOrderRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linkhub.oms.entity.ProcessOrderRecordEntity;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 加工单记录表 服务实现类
 * </p>
 *
 * @author Jaycle
 * @since 2024-05-16
 */
@Service
public class ProcessOrderRecordServiceImpl extends ServiceImpl<ProcessOrderRecordEntityMapper, ProcessOrderRecordEntity> implements IProcessOrderRecordService {

    @Override
    public ProcessOrderRecordEntity getProcessOrderRecordByOrderCode(String sysProcessOrderCode) {
        return lambdaQuery()
                .eq(ProcessOrderRecordEntity::getSysProcessOrderCode, sysProcessOrderCode)
                .one();
    }

}
